package com.fjec.base.mapper;

import com.fjec.base.entity.SysAnnex;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 001.附件表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2020-08-31
 */
public interface SysAnnexMapper extends BaseMapper<SysAnnex> {

    /**
     * 查询需要删除的附件列表
     *
     * @param limit
     * @param days
     * @return
     */
    List<SysAnnex> getAnnexForDelete(@Param("limit") int limit,
                                    @Param("days") int days);
}
